home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0844.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  1.8 KB  |  38 lines

  1. I spent a couple of hours yesterday working on the drawing routines for
  2. GEM-DEU and managed to increase the speed quite a lot.
  3.  
  4. Replacing (almost) all the floating point calculations with fixed point
  5. code made the general line drawing and especially the vertex mode (which
  6. used a floating point square root) a lot faster.
  7. A trivial rejection test for lines/circles outside the displayed part of
  8. the map means that scrolling through a zoomed map by dragging the sliders
  9. (if you're using an AES that supports it) now works very well.
  10.  
  11. Some other things that I'll look into later are:
  12. - Redrawing only the necessary parts.
  13.    For scrolling and minor updates this should increase the speed a _lot_.
  14.    Naturally, the rectangle list should be used as well.
  15. - Blitting small circles etc instead of drawing them.
  16.    Compare the drawing speed between the 'Things' mode which draws objects
  17.    as circles and the others that draw them as two crossing lines...
  18. - Using special code for horizontal and vertical lines.
  19. - Presorting coordinates to make the clipping faster.
  20. - Precalculating screen coordinates.
  21. - Off screen drawing with specialized routines.
  22.  
  23.  
  24. I'd appreciate if some of you who're used to working with GEM-DEU could
  25. take a look at the test version, testdeu.lzh, that I've uploaded to my site.
  26. I haven't noticed any problems myself, but I've only tested it a little.
  27.  
  28. Please, note that this test version is not a full GEM-DEU.
  29. Just about the only thing that works is viewing a map in the different modes.
  30.  
  31. -- 
  32.   Chalmers University   | Why are these |  e-mail:   rand@cd.chalmers.se
  33.      of Technology      |  .signatures  |            johan@rand.thn.htu.se
  34.                         | so hard to do |  WWW/ftp:  rand.thn.htu.se
  35.    Gothenburg, Sweden   |     well?     |            (MGIFv5, QLem, BAD MOOD)
  36.  
  37.  
  38.